package cn.tedu.ivos.vehicle.mapper;

import cn.tedu.ivos.vehicle.pojo.dto.VehicleQueryParam;
import cn.tedu.ivos.vehicle.pojo.entity.Vehicle;
import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface VehicleMapper {

    List<VehicleVO> selectVehicle(VehicleQueryParam vehicleQueryParam);

    void insertVehicle(Vehicle vehicle);

    void updateVehicle(Vehicle vehicle);

    VehicleVO selectVehicleByLicense(String license);

    void deleteVehicle(Long id);

    void unbindGeofence(Vehicle vehicle);

    void unbindAllByGeofenceId(Long geofenceId);
}
